#ifndef __SCHEDULER_H
#define __SCHEDULER_H

#include "Common.h"

class Scheduler{
private:
    IThread* _threads[5];
    volatile uint8_t _numThreads;
    volatile int8_t _currentThread;

public:
    Scheduler();

    void addThread(IThread* thread) volatile;

    void nextThread() volatile;
    void runCurrentThread() volatile;
};

#endif // __SCHEDULER_H
